package cn.lili.modules.store.entity.dos;

import cn.lili.common.utils.BeanUtil;
import cn.lili.modules.member.entity.dos.Member;
import cn.lili.modules.store.entity.dto.AdminStoreApplyDTO;
import cn.lili.modules.store.entity.enums.StoreStatusEnum;
import cn.lili.mybatis.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
@TableName("li_market")
@ApiModel(value = "市场")
@NoArgsConstructor
public class Market extends BaseEntity {

    private static final long serialVersionUID = -5861767346387892272L;


    @ApiModelProperty(value = "市场名称")
    private String marketName;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "市场关闭时间")
    private Date marketEndTime;

    /**
     * @see StoreStatusEnum
     */
    @ApiModelProperty(value = "市场状态")
    private String marketDisable;

    @ApiModelProperty(value = "经营类目")
    private String goodsManagementCategory;


    @ApiModelProperty(value = "经纬度")
    @NotEmpty
    private String marketCenter;

    @Size(min = 6, max = 200, message = "市场简介需在6-200字符之间")
    @NotBlank(message = "市场简介不能为空")
    @ApiModelProperty(value = "市场简介")
    private String marketDesc;

    @ApiModelProperty(value = "地址名称， '，'分割")
    private String marketAddressPath;

    @ApiModelProperty(value = "地址id，'，'分割 ")
    private String marketAddressIdPath;

    @ApiModelProperty(value = "详细地址")
    private String marketAddressDetail;

    @ApiModelProperty(value = "联系人姓名")
    private String linkName;

    @ApiModelProperty(value = "联系人电话")
    private String linkPhone;


}
